package com.company;

import java.util.Scanner;

public class Main23 {
    public static void main(String[] args) {
        Scanner sr =new Scanner(System.in);
        System.out.println("请输入一个三位数");
        int a=sr.nextInt();
        int a1=a%10;
        int a2=a/10%10;
        int a3=a/100;
        int  sum=a1*a1*a1+a2*a2*a2+a3*a3*a3;
          if(a==sum) System.out.println("是水仙花数");
          else System.out.println("不是水仙数");
    }
}
